.class public Lcom/facebook/e/b/g;
.super Ljava/lang/Object;
.source "Tracer.java"


# static fields
.field private static final a:Ljava/lang/ThreadLocal;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/ThreadLocal",
            "<",
            "Lcom/facebook/e/b/a;",
            ">;"
        }
    .end annotation
.end field

.field private static final e:Lcom/facebook/c/g/a;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/facebook/c/g/a",
            "<",
            "Lcom/facebook/e/b/g;",
            ">;"
        }
    .end annotation
.end field


# instance fields
.field private b:Lcom/facebook/e/b/a;

.field private c:J

.field private d:J


# direct methods
.method static constructor <clinit>()V
    .locals 3

    .prologue
    .line 20
    new-instance v0, Ljava/lang/ThreadLocal;

    invoke-direct {v0}, Ljava/lang/ThreadLocal;-><init>()V

    sput-object v0, Lcom/facebook/e/b/g;->a:Ljava/lang/ThreadLocal;

    .line 27
    new-instance v0, Lcom/facebook/c/g/d;

    const-class v1, Lcom/facebook/e/b/g;

    invoke-static {}, Lcom/facebook/c/h/b;->b()Lcom/facebook/c/h/b;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Lcom/facebook/c/g/d;-><init>(Ljava/lang/Class;Lcom/facebook/c/h/a;)V

    new-instance v1, Lcom/facebook/e/b/h;

    const-class v2, Lcom/facebook/e/b/g;

    invoke-direct {v1, v2}, Lcom/facebook/e/b/h;-><init>(Ljava/lang/Class;)V

    invoke-virtual {v0, v1}, Lcom/facebook/c/g/d;->a(Lcom/facebook/c/g/b;)Lcom/facebook/c/g/d;

    move-result-object v0

    invoke-virtual {v0}, Lcom/facebook/c/g/d;->a()Lcom/facebook/c/g/a;

    move-result-object v0

    sput-object v0, Lcom/facebook/e/b/g;->e:Lcom/facebook/c/g/a;

    return-void
.end method

.method private constructor <init>()V
    .locals 2

    .prologue
    .line 106
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 107
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/facebook/e/b/g;->b:Lcom/facebook/e/b/a;

    .line 108
    const-wide/16 v0, -0x1

    iput-wide v0, p0, Lcom/facebook/e/b/g;->c:J

    .line 109
    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lcom/facebook/e/b/g;->d:J

    .line 110
    return-void
.end method

.method synthetic constructor <init>(Lcom/facebook/e/b/h;)V
    .locals 0
    .parameter

    .prologue
    .line 18
    invoke-direct {p0}, Lcom/facebook/e/b/g;-><init>()V

    return-void
.end method

.method private a(JZ)J
    .locals 6
    .parameter
    .parameter

    .prologue
    .line 172
    .line 173
    iget-object v0, p0, Lcom/facebook/e/b/g;->b:Lcom/facebook/e/b/a;

    if-eqz v0, :cond_0

    .line 174
    iget-object v0, p0, Lcom/facebook/e/b/g;->b:Lcom/facebook/e/b/a;

    iget-wide v1, p0, Lcom/facebook/e/b/g;->c:J

    move-wide v3, p1

    move v5, p3

    invoke-virtual/range {v0 .. v5}, Lcom/facebook/e/b/a;->a(JJZ)J

    move-result-wide v0

    .line 178
    :goto_0
    sget-object v2, Lcom/facebook/e/b/g;->e:Lcom/facebook/c/g/a;

    invoke-virtual {v2, p0}, Lcom/facebook/c/g/a;->a(Ljava/lang/Object;)V

    .line 179
    return-wide v0

    .line 176
    :cond_0
    invoke-static {}, Ljava/lang/System;->nanoTime()J

    move-result-wide v0

    iget-wide v2, p0, Lcom/facebook/e/b/g;->d:J

    sub-long/2addr v0, v2

    goto :goto_0
.end method

.method static synthetic a(Lcom/facebook/e/b/g;J)J
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 18
    iput-wide p1, p0, Lcom/facebook/e/b/g;->c:J

    return-wide p1
.end method

.method static synthetic a(Lcom/facebook/e/b/g;Lcom/facebook/e/b/a;)Lcom/facebook/e/b/a;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 18
    iput-object p1, p0, Lcom/facebook/e/b/g;->b:Lcom/facebook/e/b/a;

    return-object p1
.end method

.method public static a(Ljava/lang/String;)Lcom/facebook/e/b/g;
    .locals 1
    .parameter

    .prologue
    .line 51
    const/4 v0, 0x0

    invoke-static {v0, p0}, Lcom/facebook/e/b/g;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/facebook/e/b/g;

    move-result-object v0

    return-object v0
.end method

.method public static a(Ljava/lang/String;Ljava/lang/String;)Lcom/facebook/e/b/g;
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 94
    sget-object v0, Lcom/facebook/e/b/g;->e:Lcom/facebook/c/g/a;

    invoke-virtual {v0}, Lcom/facebook/c/g/a;->a()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/facebook/e/b/g;

    .line 95
    sget-object v1, Lcom/facebook/e/b/g;->a:Ljava/lang/ThreadLocal;

    invoke-virtual {v1}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/facebook/e/b/a;

    iput-object v1, v0, Lcom/facebook/e/b/g;->b:Lcom/facebook/e/b/a;

    .line 96
    iget-object v1, v0, Lcom/facebook/e/b/g;->b:Lcom/facebook/e/b/a;

    if-eqz v1, :cond_0

    .line 97
    iget-object v1, v0, Lcom/facebook/e/b/g;->b:Lcom/facebook/e/b/a;

    invoke-virtual {v1, p1, p0}, Lcom/facebook/e/b/a;->a(Ljava/lang/String;Ljava/lang/String;)J

    move-result-wide v1

    iput-wide v1, v0, Lcom/facebook/e/b/g;->c:J

    .line 98
    const-wide/16 v1, 0x0

    iput-wide v1, v0, Lcom/facebook/e/b/g;->d:J

    .line 103
    :goto_0
    return-object v0

    .line 100
    :cond_0
    const-wide/16 v1, -0x1

    iput-wide v1, v0, Lcom/facebook/e/b/g;->c:J

    .line 101
    invoke-static {}, Ljava/lang/System;->nanoTime()J

    move-result-wide v1

    iput-wide v1, v0, Lcom/facebook/e/b/g;->d:J

    goto :goto_0
.end method

.method public static varargs a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Lcom/facebook/e/b/g;
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 78
    invoke-static {p1, p2}, Lcom/facebook/c/i/b;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 79
    invoke-static {p0, v0}, Lcom/facebook/e/b/g;->a(Ljava/lang/String;Ljava/lang/String;)Lcom/facebook/e/b/g;

    move-result-object v0

    return-object v0
.end method

.method public static varargs a(Ljava/lang/String;[Ljava/lang/Object;)Lcom/facebook/e/b/g;
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 62
    const/4 v0, 0x0

    invoke-static {v0, p0, p1}, Lcom/facebook/e/b/g;->a(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Lcom/facebook/e/b/g;

    move-result-object v0

    return-object v0
.end method

.method public static a(ILjava/lang/String;)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 251
    sget-object v0, Lcom/facebook/e/b/g;->a:Ljava/lang/ThreadLocal;

    invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/facebook/e/b/a;

    .line 252
    if-eqz v0, :cond_0

    .line 253
    invoke-virtual {v0, p0, p1}, Lcom/facebook/e/b/a;->a(ILjava/lang/String;)V

    .line 254
    sget-object v0, Lcom/facebook/e/b/g;->a:Ljava/lang/ThreadLocal;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V

    .line 256
    :cond_0
    return-void
.end method

.method public static a(J)V
    .locals 2
    .parameter

    .prologue
    .line 221
    sget-object v0, Lcom/facebook/e/b/g;->a:Ljava/lang/ThreadLocal;

    invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/facebook/e/b/a;

    .line 222
    if-nez v0, :cond_0

    .line 223
    new-instance v0, Lcom/facebook/e/b/a;

    invoke-direct {v0}, Lcom/facebook/e/b/a;-><init>()V

    .line 224
    sget-object v1, Lcom/facebook/e/b/g;->a:Ljava/lang/ThreadLocal;

    invoke-virtual {v1, v0}, Ljava/lang/ThreadLocal;->set(Ljava/lang/Object;)V

    .line 226
    :cond_0
    invoke-virtual {v0, p0, p1}, Lcom/facebook/e/b/a;->a(J)V

    .line 227
    return-void
.end method

.method public static b(Ljava/lang/String;)V
    .locals 1
    .parameter

    .prologue
    .line 188
    sget-object v0, Lcom/facebook/e/b/g;->a:Ljava/lang/ThreadLocal;

    invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/facebook/e/b/a;

    .line 189
    if-eqz v0, :cond_0

    .line 190
    invoke-virtual {v0, p0}, Lcom/facebook/e/b/a;->a(Ljava/lang/String;)V

    .line 192
    :cond_0
    return-void
.end method

.method public static varargs b(Ljava/lang/String;[Ljava/lang/Object;)V
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 201
    invoke-static {p0, p1}, Lcom/facebook/c/i/b;->a(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 202
    invoke-static {v0}, Lcom/facebook/e/b/g;->b(Ljava/lang/String;)V

    .line 203
    return-void
.end method


# virtual methods
.method public a()V
    .locals 3

    .prologue
    .line 117
    const-wide/16 v0, 0x0

    const/4 v2, 0x0

    invoke-direct {p0, v0, v1, v2}, Lcom/facebook/e/b/g;->a(JZ)J

    .line 118
    return-void
.end method
